
#include "mystdio.h"
#include <string.h>

int main()
{
    myFILE* fp=my_fopen("test.txt","w");

    if (fp==NULL)
    {
        return -1;
    }

         
     const char *str="hello world";

     my_fwrite(fp,str,strlen(str));

     my_fclose(fp);
 
    return 0;
}